package com.chixing.day08_interface;

public class InterfaceDemo {
    public static void main(String[] args) {
        String s1 = "hello";
        String s2 = "run";
        int result = s1.compareTo(s2); //-10

        System.out.println(result);
        System.out.println('a'- 'b');

        Product product1 = new Product("杯子",900,7f);
        Product product2 = new Product("手机",1000,99f);
        int result2 = product1.compareTo(product2);
        System.out.println(result2);

    }


}
